<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <title>
        响应式布局
    </title>

    
<!-- 
    flex布局 (弹性布局)
    响应式布局
    自适应布局

-->

    <style>
        /* iphone6 7 8 */

        body {
            background-color: yellow;
        }
        /* iphone 5 */
        @media screen and (max-width: 320px) {
            body {
            background-color: red;
            }
        }
        /* iphoneX */
        @media screen and (min-width: 375px) and (-webkit-device-pixel-ratio: 3) {
            body {
            background-color: #0FF000;
            }
        }
        /* iphone6 7 8 plus */
        @media screen and (min-width: 414px) {
            body {
            background-color: blue;
            }
        }
        /* ipad */
        @media screen and (min-width: 768px) {
            body {
            background-color: green;
            }
        }
        /* ipad pro */
        @media screen and (min-width: 1024px) {
            body {
            background-color: #FF00FF;
            }
        }
        /* pc */
        @media screen and (min-width: 1100px) {
            body {
            background-color: black;
            }
        }
    </style>
</head>
<body>
    
</body>
</html>